#!/bin/bash
#
# conveinience script for running autest after building the target
#
#

export LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib
export PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/gold_tests/remap:$PYTHONPATH

${RUNPIPENV} run env autest \
  --sandbox ${AUTEST_SANDBOX} \
  --directory ${CMAKE_CURRENT_SOURCE_DIR}/gold_tests \
  --ats-bin=${CMAKE_INSTALL_PREFIX}/bin \
  --proxy-verifier-bin ${PROXY_VERIFIER_PATH} \
  --build-root ${CMAKE_BINARY_DIR} \
  ${AUTEST_OPTIONS} \
  "$@"
